<div class="main-container col1-layout">
	<div class="container">
		<div class="row">
			<div class="col-xs-12">
				<div class="main">
					<div class="col-main">
						<div class="padding-s">
							<div class="account-login">
								<div class="page-title">
									<h1>
										Đăng nhập hoặc đăng ký tài khoản mới
									</h1>
								</div>
                                <?php $form=$this->beginWidget('CActiveForm', array(
                                	'id'=>'login-form',
                                	'enableClientValidation'=>true,
                                	'clientOptions'=>array(
                                		'validateOnSubmit'=>true,
                                	),
                                    'htmlOptions'=>array(
                                        'class'=>'box login',
                                    ),
                                )); ?>
									<input name="form_key" type="hidden" value="C8xUXj7cXed0d1mB"/>
									<div class="col2-set">
										<div class="wrapper">
											<div class="registered-users-wrapper">
												<div class="col-2 registered-users">
													<div class="content">
														<h2>
															Đăng nhập
														</h2>
														<p>
															Nếu bạn đã là thành viên, vui lòng đăng nhập.
														</p>
														<ul class="form-list">
															<li>
																<label for="email" class="required">
																	<em>
																		*
																	</em>
																	Email
																</label>
																<div class="input-box">
																	 <?php echo $form->textField($model,'email',array('id'=>'email','class'=>'input-text required-entry validate-email','title'=>'Email')); ?>
                                                                     <?php echo $form->error($model,'email'); ?>
																</div>
															</li>
															<li>
																<label for="pass" class="required">
																	<em>
																		*
																	</em>
																	Mật khẩu
																</label>
																<div class="input-box">
                                                                    <?php echo $form->passwordField($model,'password',array('id'=>'pass','class'=>'input-text required-entry validate-password','title'=>'Mật khẩu')); ?>
	                                                                <?php echo $form->error($model,'password'); ?>
																</div>
															</li>
														</ul>
														<div id="window-overlay" class="window-overlay" style="display:none;">
														</div>
														<div id="remember-me-popup" class="remember-me-popup" style="display:none;">
															<div class="remember-me-popup-head">
																<h3>
																	Đây là gì?
																</h3>
																<a href="#" class="remember-me-popup-close" title="Close">Close</a>
															</div>
															<div class="remember-me-popup-body">
																<p>
																	Checking &quot;Remember Me&quot; will let you access your shopping cart on this computer when you are logged out
																</p>
																<div class="remember-me-popup-close-button a-right">
																	<a href="#" class="remember-me-popup-close button" title="Close"><span>Close</span></a>
																</div>
															</div>
														</div>
														<script type="text/javascript">
															//<![CDATA[

															function toggleRememberMepopup(event) {
																if ($('remember-me-popup')) {
																	var viewportHeight = document.viewport.getHeight(),
																		docHeight = $$('body')[0].getHeight(),
																		height = docHeight > viewportHeight ? docHeight : viewportHeight;
																	$('remember-me-popup').toggle();
																	$('window-overlay').setStyle({
																		height: height + 'px'
																	}).toggle();
																}
																Event.stop(event);
															}

															document.observe("dom:loaded", function() {
																new Insertion.Bottom($$('body')[0], $('window-overlay'));
																new Insertion.Bottom($$('body')[0], $('remember-me-popup'));

																$$('.remember-me-popup-close').each(function(element) {
																	Event.observe(element, 'click', toggleRememberMepopup);
																})
																$$('#remember-me-box a').each(function(element) {
																	Event.observe(element, 'click', toggleRememberMepopup);
																});
															});
															//]]>
															
														</script>
														<p class="required">
															* Bắt buộc
														</p>
														<div class="buttons-set">
															<a href="#" class="f-left">Quên mật khẩu?</a>
															<button type="submit" class="button" title="Login" name="send" id="send2">
																<span>
																	<span>
																		Đăng nhập
																	</span>
																</span>
															</button>
														</div>
													</div>
												</div>
											</div>
											<div class="new-users-wrapper">
												<div class="col-1 new-users">
													<div class="content">
														<h2>
															Chưa phải là thành viên
														</h2>
														<p>
															By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.
														</p>
														<div class="buttons-set">
															<button type="button" title="Đăng ký thành viên" class="button" onclick="window.location='<?php echo Yii::app()->createUrl('Browser/Signup'); ?>';">
																<span>
																	<span>
																		Đăng ký thành viên
																	</span>
																</span>
															</button>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								<?php $this->endWidget(); ?>
								<script type="text/javascript">
									//<![CDATA[
									var dataForm = new VarienForm('login-form', true);
									//]]>
								</script>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php
	Yii::app()->getClientScript()->registerScriptFile(JS_FOLDER.'captcha.js');
?>